﻿<!-- App.vue -->
<template>
  <!-- 使用全局注册的组件 -->
  <GlobalComponentA />
  <global-component-a />
  <global-component-b />

  <!-- 使用局部注册的组件 -->
  <LocalComponent />
  <local-component>你好</local-component>
</template>

<script>
import { createApp } from 'vue'
import LocalComponent from './Components/LocalComponent.vue'
import GlobalComponentA from "@/pages/chapter2/Components/GlobalComponentA.vue";

const app = createApp({})


export default {
  components: {
    GlobalComponentA,
    // 局部注册组件，只在此组件内部可用
    LocalComponent
  }
}
</script>
